<?php

namespace App\model;

use Illuminate\Database\Eloquent\Model;

/**
 * App\ParkFormat
 *
 * @property int $id
 * @property string|null $name
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ParkFormat whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ParkFormat whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ParkFormat whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ParkFormat whereUpdatedAt($value)
 * @mixin \Eloquent
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\ParkFormat newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\ParkFormat newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\ParkFormat query()
 */
class ParkFormat extends Model
{
    protected  $table='park_format';
    public static function getSelectOptions()
    {
        $options = \DB::table('park_format')->select('id','name as text')->get();
        $selectOption = [];
        foreach ($options as $option){
            $selectOption[$option->id] = $option->text;
        }
        return $selectOption;
    }
}
